<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style type="text/css">
body{
	background: #ccc;
	margin: 0px;
	font-size: 12px;
}
div.menu-container{
	padding: 5px 3px;
	background: #fff;
	margin: 3px;
}
div.menu-header{
	padding: 8px 0px;
	text-align: center;
	background: #FA6703;
	color: #fff;
	font-weight: bold;
	cursor: default;
}
div.menu-lines{
	background: #fff;
	padding-left: 3px;
}
div.menu-lines div{
	padding: 3px 0px;
	background: #eee;
	cursor: default;
	font-weight: bold;
}
div.menu-lines div.sub{
	padding-left: 1.2em;
	font-weight: normal;
}
div.menu-lines div.selected{
	background-color: #ccc;
}
</style>
<script type="text/javascript">
function loadPage(url){
	window.parent.document.getElementById("mainFrame").src="./pages/"+url;
}
function init(){
	var menuList=document.getElementById("menuList");
	var nodeList=menuList.childNodes;
	for(var i=0;i<nodeList.length;i++){
		if(nodeList[i].nodeType==1 && nodeList[i].className.indexOf("sub")>-1){
			nodeList[i].onclick=function(){
				if(this==window.cur_menu_item){
					return ;
				}
				this.className="sub selected";
				if(window.cur_menu_item){
					window.cur_menu_item.className="sub";
				}
				window.cur_menu_item=this;
				loadPage(this.uri);
			};
			nodeList[i].onmouseover=function(){
				this.style.backgroundColor="#aaa";
				document.title="进去";
			};
			nodeList[i].onmouseout=function(){
				this.style.backgroundColor="";
				document.title="出去";
			};
		}
	}
}
window.onload=function(){
	init();
};
function loginOff(){
	if(confirm("确认注销？")){
		window.parent.document.getElementById("mainFrame").src="./pages/login-out.jsp";
	}
}
</script>
</head>
<body>
<div class="menu-container">
	<div class="menu-header">系统菜单</div>
	<div class="menu-lines" id="menuList">
		<div>系统管理</div>
		<div class="sub" uri="self-admin.jsp">注册资料维护</div>
		<div class="sub" uri="business-pic-list.jsp">企业图库</div>
		<div class="sub" uri="midify-password.jsp">密码修改</div>
		<div class="sub" uri="accounts-list.jsp">帐号管理</div>
		<div class="sub" uri="accounts-edit.jsp">录入帐号</div>
		
		<div>产品信息管理</div>
		<div class="sub" uri="product-list.jsp">产品列表</div>
		<div class="sub" uri="product-edit.jsp">录入产品</div>
		<div class="sub" uri="product-class-list.jsp">产品分类</div>
		<div class="sub" uri="product-class-edit.jsp">录入分类</div>
		
		<div>竞标管理</div>
		<div class="sub" uri="get-bidding.jsp">竞标管理</div>
		
		<div>角色管理</div>
		<div class="sub" uri="role-list.jsp">角色管理</div>
		<div class="sub" uri="role-edit.jsp">创建角色</div>

		<div>订单管理管理</div>
		<div class="sub" uri="order-forms-list.jsp">待确认订单</div>
		<div class="sub" uri="order-forms-list.jsp">待送货订单</div>
		<div class="sub" uri="order-forms-list.jsp">待确认货到订单</div>
		<div class="sub" uri="order-forms-list.jsp">待支付订单</div>
		<div class="sub" uri="order-forms-list.jsp">完成订单</div>
		<div class="sub" uri="order-forms-list.jsp">作废订单</div>
		
		<div>使用反馈</div>
		<div class="sub" uri="feedback-list.jsp">反馈管理</div>
		<div class="sub" uri="feedback-edit.jsp">反馈信息</div>
		
		
		<a href="javascript:void(0)" onclick="javascript:loginOff()">注销</a>
	</div>
</div>
</body>
</html>